package com.hp.bon.sgw.scsp;

public class Peer {

	private String hostID;//same as host-id in AVP
	private String hostAddress;//host part of URI
	private String authCode;//host part of URI
	private int port;//port part of URI
	public Peer(String hostID, String hostAddress, int port)
	{
		this.hostID = hostID;
		this.hostAddress = hostAddress;
		this.port = port;
	}
	public String getHostID() {
		return hostID;
	}
	public void setHostID(String hostID) {
		this.hostID = hostID;
	}
	public String getHostAddress() {
		return hostAddress;
	}
	public void setHostAddress(String hostAddress) {
		this.hostAddress = hostAddress;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	@Override
	public int hashCode() {
		return hostID.hashCode();
	}
	@Override
	public String toString() {
		return hostID + ":" + hostAddress+":" + port;
	}
	public String getAuthCode() {
		return authCode;
	}
	public void setAuthCode(String authCode) {
		this.authCode = authCode;
	}
}
